package com.hpjz.common;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;

@Controller
public class BaseController {

	@ExceptionHandler(Exception.class)
	public String handlerException(Exception e, HttpServletRequest request) {
		request.setAttribute("e", e);
		return "/jsp/error/error";
	}

}
